import layout from '@/layout'
export default {
  name: 'employee',
  path: '/employee',
  component: layout,
  children: [
    {
      path: '',
      name: 'employee',
      component: () => import('@/views/employee'),
      meta: {
        title: '员工',
        icon: 'people'
      }
    },
    {
      // 动态路由要在路由规则中提前配置
      // ? 表示可选参数
      path: 'detail/:id?',
      component: () => import('@/views/employee/detail.vue'),
      hidden: true, // 不要显示在菜单栏中
      meta: {
        title: '员工详情' // 面包屑自动识别的标题
      }
    }
  ]
}
